<?php

/**********************************************************
数据库配置
**********************************************************/

define('DBCONNECT_DEFAULT','UV');
define('DBNAME_DEFAULT','db_uv');	//默认数据库名
define('DBCONNECT_BYSQL',true);//根据sql语句选择db，逻辑在dao_base.php里处理
//连接配置列表，列表包含连接信息元素
//每个连接信息包括键: host ,user, pwd
//相同的配置将导致相同的连接。
global $db_connection_config;
//开发环境DB配置
$db_connection_config[DEVELOP_ENV]['UV']['host']='172.30.6.2';
$db_connection_config[DEVELOP_ENV]['UV']['user']='test';
$db_connection_config[DEVELOP_ENV]['UV']['pwd']='test';
$db_connection_config[DEVELOP_ENV]['UV']['keepconnect']=0;

//测试机DB配置
$db_connection_config[TEST_ENV]['UV']['host']='127.0.0.1';
$db_connection_config[TEST_ENV]['UV']['user']='root';
$db_connection_config[TEST_ENV]['UV']['pwd']='';
$db_connection_config[TEST_ENV]['UV']['keepconnect']=0;

//正式环境DB配置
$dbConnectionConfig[RELEASE_ENV]['UV']['host']='127.0.0.1';
$dbConnectionConfig[RELEASE_ENV]['UV']['user']='root';
$dbConnectionConfig[RELEASE_ENV]['UV']['pwd']='';
$dbConnectionConfig[RELEASE_ENV]['UV']['keepconnect']=0;

/**********************************************************
DAO配置
**********************************************************/
define("_UT_",TRUE);
//if(PHP_OS==="WINNT")$crlf="\r\n";
$crlf="\n";
define("CRLF", $crlf);